import json

import jsonpath

json_data = {
    "result": 1,
    "error_msg": "操作成功",
    "data": [{
        "planId": 722679525434,
        "promoterName": "青青草原扛把子-内部测试",
        "promoterId": 2337072173,
        "fansNum": "312",
        "commissionRate": 190,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15409952072434,
        "normalPlanStatus": 2,
        "name": "预售·15天内发货·测试商品勿拍3",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-017acb686e9142899acce86ed29f14f0.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15409952072434&hyId=kwaishop&layoutType=4&promoteChannel=1&promoteId=2337072173",
        "stock": 0,
        "price": 9.0,
        "fsTeam": 0,
        "minPrice": 900,
        "maxPrice": 900
    }, {
        "planId": 717869848434,
        "promoterName": "青青草原扛把子-内部测试",
        "promoterId": 2337072173,
        "fansNum": "312",
        "commissionRate": 100,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15395987622434,
        "normalPlanStatus": 2,
        "name": "生鲜·测试商品勿拍2",
        "comment": "不支持7天无理由退货",
        "itemImgUrl": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-485a5f19be48422fa587a08b934e57bb.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15395987622434&hyId=kwaishop&layoutType=4",
        "stock": 0,
        "price": 9.0,
        "fsTeam": 0,
        "minPrice": 900,
        "maxPrice": 900
    }, {
        "planId": 717746500434,
        "promoterName": "铜锣湾扛把子",
        "promoterId": 2359894008,
        "fansNum": "126",
        "commissionRate": 170,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15378827454434,
        "normalPlanStatus": 2,
        "name": "图书文娱·测试商品勿拍24",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-20530a901e0145a4b4e415818ee56c49.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15378827454434&hyId=kwaishop&layoutType=4&promoteChannel=1&promoteId=2359894008",
        "stock": 0,
        "price": 8.0,
        "fsTeam": 0,
        "minPrice": 800,
        "maxPrice": 800
    }, {
        "planId": 710917105434,
        "promoterName": "青青草原扛把子-内部测试",
        "promoterId": 2337072173,
        "fansNum": "312",
        "commissionRate": 170,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15337971763434,
        "normalPlanStatus": 2,
        "name": "图书文娱·测试商品勿拍8",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-20530a901e0145a4b4e415818ee56c49.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15337971763434&hyId=kwaishop&layoutType=4&promoteChannel=1&promoteId=2337072173",
        "stock": 0,
        "price": 9.0,
        "fsTeam": 0,
        "minPrice": 900,
        "maxPrice": 900
    }, {
        "planId": 713806770434,
        "promoterName": "多乐乐乐乐",
        "promoterId": 2428997147,
        "fansNum": "35",
        "commissionRate": 110,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15337971763434,
        "normalPlanStatus": 2,
        "name": "图书文娱·测试商品勿拍8",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u2-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-20530a901e0145a4b4e415818ee56c49.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15337971763434&hyId=kwaishop&layoutType=4",
        "stock": 0,
        "price": 9.0,
        "fsTeam": 0,
        "minPrice": 900,
        "maxPrice": 900
    }, {
        "planId": 716825012434,
        "promoterName": "分销扛把子",
        "promoterId": 753185064,
        "fansNum": "74",
        "commissionRate": 350,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15372434325434,
        "normalPlanStatus": 2,
        "name": "图书文娱·测试商品勿拍7",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-20530a901e0145a4b4e415818ee56c49.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15372434325434&hyId=kwaishop&layoutType=4",
        "stock": 0,
        "price": 11.0,
        "fsTeam": 0,
        "minPrice": 1100,
        "maxPrice": 1100
    }, {
        "planId": 695751231434,
        "promoterName": "馮小林🎙",
        "promoterId": 463189500,
        "fansNum": "5960",
        "commissionRate": 880,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15230932854434,
        "normalPlanStatus": 2,
        "name": "测试商品--2",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-3641cbea0a754d0baea5ee3ef1a0a621.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15230932854434&hyId=kwaishop&layoutType=4",
        "stock": 0,
        "price": 0.05,
        "fsTeam": 0,
        "minPrice": 5,
        "maxPrice": 5
    }, {
        "planId": 700543332434,
        "promoterName": "多乐乐乐乐",
        "promoterId": 2428997147,
        "fansNum": "35",
        "commissionRate": 880,
        "status": 1,
        "disabled": 0,
        "disabledMsg": "",
        "hasWaitValidCommissionRate": 'false',
        "waitValidCommissionRate": 0,
        "waitValidInfo": "",
        "itemId": 15219906291434,
        "normalPlanStatus": 3,
        "name": "测试商品--1",
        "comment": "支持7天无理由退货",
        "itemImgUrl": "https://u1-203.ecukwai.com/bs2/image-kwaishop-product/item-2995700434-3641cbea0a754d0baea5ee3ef1a0a621.jpg",
        "itemLinkUrl": "https://app.kwaixiaodian.com/merchant/shop/detail?id=15219906291434&hyId=kwaishop&layoutType=4&promoteChannel=1&promoteId=ks_2428997147_666_A0wyjO-f63o",
        "stock": 0,
        "price": 0.05,
        "fsTeam": 0,
        "minPrice": 5,
        "maxPrice": 5
    }],
    "total": 8
}

data = jsonpath.jsonpath(json_data,'$..itemId')
for i in data:
    print(f'商品id:{i}')

